<?php

add_shortcode('note', 'note_func');
add_shortcode('divider', 'divider_func');
add_shortcode('two_column', 'two_column_func');
add_shortcode('two_column_last', 'two_column_last_func');

// note shortcode
function note_func($atts, $content = FALSE, $code = '') {
	if($content != FALSE)
	{
		return '<div class="content_box"> ' . $content . ' </div>';
	}
	
	return FALSE;
}

// divider shortcode
function divider_func($atts, $content = FALSE, $code = '') {
	return '<div class="divider"></div>';
}

// two_column shortcode
function two_column_func($atts, $content = FALSE, $code = '') {
	return '<div class="two_column">' . do_shortcode($content) . '</div>';
}

// two_column_last shortcode
function two_column_last_func($atts, $content = FALSE, $code = '') {
	return '<div class="two_column_last">' . do_shortcode($content) . '</div><div class="clear"></div>';
}
